package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //类型 1 菜品分类 2套餐分类
    private Integer type;

    //名称分类
    private String name;

    //顺序
    private Integer sort;

    @TableField(fill = FieldFill.INSERT) //插入时填充该字段
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE) //插入或者更新时填充该字段
    private LocalDateTime  updateTime;

    @TableField(fill = FieldFill.INSERT) //插入时填充该字段
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE) //插入或者更新时填充该字段
    private Long updateUser;


}
